package cn.yunhe.service;

import java.util.List;

import cn.yunhe.dao.AdminDao;
import cn.yunhe.daoImpl.AdminDaoImpl;
import cn.yunhe.model.Admin;

public class AdminService {
	AdminDao adminDao = new AdminDaoImpl();

	public List<Admin> searchAllAdmin() {
		return adminDao.searchAllAdmin();
	}

	public boolean addAdmin(Admin admin) {
		return adminDao.addAdmin(admin);
	}

	public boolean deleteAdmin(Admin admin) {
		return adminDao.deleteAdmin(admin);
	}

	public Admin loginAdmin(Admin admin){
		return adminDao.loginAdmin(admin);
	}

	public boolean updateAdmin(Admin admin){
		return adminDao.updateAdmin(admin);
	}
}
